﻿using MVC_basic.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MVC_basic.Controllers
{
    //[IPFilter(AllowedIP = "::1,173.194.71.141,89.160.103.82")]
    public class CajaAppController : Controller
    {
        public string Index()
        {
            var path = System.Web.HttpContext.Current.Server.MapPath("~/CajaApps/CajaApp/index.html");
            System.IO.StreamReader myFile = new System.IO.StreamReader(path);
            string myString = myFile.ReadToEnd();

            myFile.Close();
            return myString;
        }

        /*public string Index()
        {
            string cookie = System.Web.HttpContext.Current.Request.Cookies.Get(0).Value;
            return cookie;
        }*/
    }
}
